package com.zhixing.common.domain.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum HttpStatus {
    OK(200, "OK"),
    BAD_REQUEST(400, "错误请求"),
    UNAUTHORIZED(401, "未授权"),
    NOT_FOUND(404, "未找到"),
    PASSWORD_NOT_CONSISTENT(450, "密码不一致"),
    PHONE_ALREADY_REGISTER(451, "该手机号已经注册，请登录"),
    PHONE_OR_PASSWORD_ERROR(452, "手机号或密码错误"),
    FILE_UPLOAD_FAIL(453, "文件上传失败"),
    NEWPASSWORD_NOT_SAME(454, "新密码不能和原密码相同"),
    OLDPASSWORD_ERROR(455, "原密码错误"),
    USER_STATUS_ABNORMAL(456, "用户被禁用"),
    RECHARGE_AMOUNT_EXCEED(457, "充值金额不能超过1万元"),
    WITHDRAWAL_AMOUNT_EXCEED(458, "提现金额不能超过余额"),
    ROLE_NOT_CONFORM(459, "角色不符合"),
    COUPON_NOT_EXIST(460, "优惠券不存在"),
    COUPON_ALREADY_RECEIVED(461, "优惠券已被领取"),
    CREDENTIALS_ALREADY_EXPIRE(462, "身份证或驾驶证已过期"),
    IDENTITY_NOT_CONSISTENT(463, "身份不一致"),
    ROUTE_PLANNING_FAIL(464, "路线规划失败"),
    ORDER_STATUS_ERROR(465, "订单状态错误"),
    CITY_CODE_ERROR(466, "城市代码格式错误"),
    GRAB_ORDER_FAIL(467, "抢单失败"),
    DRIVER_LOCATION_FAIL(468, "获取司机位置失败"),
    DRIVER_INFO_FAIL(469, "获取司机信息失败"),
    TAIL_NUMBER_ERROR(470, "手机尾号错误"),
    DISTANCE_START_DISTANT(471, "距离起点太远"),
    ORDER_NOT_EXIST(472, "订单不存在"),
    AMOUNT_NOT_LEGAL(473, "金额不合法"),
    PARAMETER_TYPE_ERROR(474, "参数类型错误"),
    CONDITION_AMOUNT_DISSATISFY(475, "使用门槛金额不满足"),
    METHOD_PARAMETER_MISSING(476, "方法参数缺失"),
    PAYMENT_AMOUNT_ERROR(477, "支付金额错误"),
    BALANCE_NOT_SUFFICIENT(478, "余额不足"),
    ORDER_PAYMENT_FAIL(479, "订单支付失败"),
    COUPON_USE_FAIL(480, "优惠券使用失败"),
    ORDER_REMIT_FAIL(481, "订单打款失败"),
    REMIT_AMOUNT_ERROR(482, "打款金额错误"),
    DRIVER_NOT_EXIST(483, "司机不存在"),
    WALLET_NOT_EXIST(484, "钱包不存在"),
    INTERNAL_SERVER_ERROR(500, "内部服务器错误");

    private final int code;
    private final String msg;
}
